﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<t_205_verk_hopur_12.Models.ChannelVideoViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Upplýsingar um myndband
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Upplýsingar um myndband</h2>

        <div class="display-label">Titill</div>
        <div class="display-field"><%= Html.Encode(Model.SingleVideo.Title)%></div>
        <div class="clear"></div>
        
        <div class="display-label">Lýsing</div>
        <div class="display-field"><%= Html.Encode(Model.SingleVideo.Description)%></div>
        <div class="clear"></div>
        
        <div class="display-label">Stigafjöldi</div>
        <div class="display-field"><%= Html.Encode(Model.SingleVideo.Rating)%></div>
        <div class="clear"></div>
        
        <div class="display-label">Staða</div>
        <div class="display-field">
                        <% if(Model.SingleVideo.State == 0){
                    %>
                       <%= Html.Encode("Nýtt")%>
                    <%
                    }else if(Model.SingleVideo.State == 1){
                     %>
                       <%= Html.Encode("Í kosningu")%>
                    <%
                    }else if(Model.SingleVideo.State == 2){
                    %>
                       <%= Html.Encode("Samþykkt")%>
                    <%
                    }else if(Model.SingleVideo.State == 3){
                     %>
                       <%= Html.Encode("Hafnað")%>
                    <%
                    } else {
                    %>
                       <%= Html.Encode("Birt")%>
                    <%
                    }
                %>
        </div>
        <div class="clear"></div>
        
        <div class="display-label">Myndband</div>
        <div class="display-field"><%= Model.SingleVideo.Embed %></div>
        <div class="clear"></div>
        
        <div class="display-label">Embed kóði</div>
        <div class="display-field">
            <%= Html.TextAreaFor(model => model.SingleVideo.Embed)%>
        </div>
        <div class="clear"></div>
        
    <p>&nbsp;</p>
    <p>
    <% if (Model.isOwner)
       { %>
        <%= Html.ActionLink("Breyta", "EditVideo", new { channelID = Model.Channel.ID, videoID = Model.SingleVideo.ID }, null)%> |
    <% } %>
        <%= Html.ActionLink("Til baka", "Videos", new { id = Model.SingleVideo.ChannelID })%>
    </p>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="LogoText" runat="server">
    <%= Html.ActionLink(Model.Channel.Name, "Index", new { id = Model.Channel.ID }) %>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="MenuBar" runat="server">
    <% Html.RenderPartial("AdminChannelMenuBar", Model.Channel); %>
</asp:Content>

